
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"B3BBC956-2BC5-4068-9EA6-16E565D7AE73"}
 */
function nuevaSubCat(event) {
	var $sql = 'SELECT cod_subcategoria || \' - \' || descripcion, prod_subcategoria_id '+
				'FROM prod_subcategorias '+
				'WHERE prod_subcategoria_id NOT IN ('+
					'SELECT prod_subcategoria_id FROM prod_categorias_x_prod_subcategorias WHERE '+ 
					'prod_categoria_id = ?)'
	var $args = [prod_categoria_id]
	var $ds = databaseManager.getDataSetByQuery('infocom',$sql,$args,-1)
	application.setValueListItems('prod_subcat_not_in_cat',$ds)
	globals.formEnVentana('prod_cat_x_subcat_alta','NUEVA_SUBCAT','Nueva Subcategoría')
}
